#include "process.h"


void ProcessOn()
{
    int n=101;
    int i=0;
    char bar[n];
    memset(bar,'\0',sizeof(bar));
    char arr[4]={'|','/','-','\\'};
    while(i<n)
    {
        printf("[%-100s][%3d%%][%c]\r",bar,i,arr[i%4]);
        fflush(stdout);            
        bar[i++]=STYLE;
        usleep(50000);

    }
    printf("\n");
}
